package com.dime.physical.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dime.physical.mapper.DimeInquirysignMapper;
import com.dime.physical.domain.DimeInquirysign;
import com.dime.physical.service.IDimeInquirysignService;

/**
 * 问诊签名Service业务层处理
 * 
 * @author Tiny
 * @date 2023-10-07
 */
@Service
public class DimeInquirysignServiceImpl implements IDimeInquirysignService 
{
    @Autowired
    private DimeInquirysignMapper dimeInquirysignMapper;

    /**
     * 查询问诊签名
     * 
     * @param id 问诊签名主键
     * @return 问诊签名
     */
    @Override
    public DimeInquirysign selectDimeInquirysignById(String id)
    {
        return dimeInquirysignMapper.selectDimeInquirysignById(id);
    }

    /**
     * 查询问诊签名列表
     * 
     * @param dimeInquirysign 问诊签名
     * @return 问诊签名
     */
    @Override
    public List<DimeInquirysign> selectDimeInquirysignList(DimeInquirysign dimeInquirysign)
    {
        return dimeInquirysignMapper.selectDimeInquirysignList(dimeInquirysign);
    }

    /**
     * 新增问诊签名
     * 
     * @param dimeInquirysign 问诊签名
     * @return 结果
     */
    @Override
    public int insertDimeInquirysign(DimeInquirysign dimeInquirysign)
    {
        dimeInquirysign.setCreateTime(DateUtils.getNowDate());
        return dimeInquirysignMapper.insertDimeInquirysign(dimeInquirysign);
    }

    /**
     * 修改问诊签名
     * 
     * @param dimeInquirysign 问诊签名
     * @return 结果
     */
    @Override
    public int updateDimeInquirysign(DimeInquirysign dimeInquirysign)
    {
        dimeInquirysign.setUpdateTime(DateUtils.getNowDate());
        return dimeInquirysignMapper.updateDimeInquirysign(dimeInquirysign);
    }

    /**
     * 批量删除问诊签名
     * 
     * @param ids 需要删除的问诊签名主键
     * @return 结果
     */
    @Override
    public int deleteDimeInquirysignByIds(String[] ids)
    {
        return dimeInquirysignMapper.deleteDimeInquirysignByIds(ids);
    }

    /**
     * 删除问诊签名信息
     * 
     * @param id 问诊签名主键
     * @return 结果
     */
    @Override
    public int deleteDimeInquirysignById(String id)
    {
        return dimeInquirysignMapper.deleteDimeInquirysignById(id);
    }
}
